package org.csmzxy.class2334.Dogkeeper2;

public class example15 {
    public static void main(String[] args){
        Animal animal = new cat();
        if (animal instanceof dog){
            dog Dog = (dog) animal;
            Dog.houseKeep();
        }else{
            System.out.println("对象类型向下转换不合法");
        }
    }
}